The five library routines described on this page are part of the UNIX
System V Network Selection component. They provide application access to
the system network configuration database, _////_eeee_tttt_cccc_////_nnnn_eeee_tttt_cccc_oooo_nnnn_ffff_iiii_gggg. In addition
to the _nnnn_eeee_tttt_cccc_oooo_nnnn_ffff_iiii_gggg database and the routines for accessing it, Network
Selection includes the environment variable _NNNN_EEEE_TTTT_PPPP_AAAA_TTTT_HHHH [see _eeee_nnnn_vvvv_iiii_rrrr_oooo_nnnn(5)] and
the _NNNN_EEEE_TTTT_PPPP_AAAA_TTTT_HHHH access routines described in _gggg_eeee_tttt_nnnn_eeee_tttt_pppp_aaaa_tttt_hhhh(3N).
A call to _ssss_eeee_tttt_nnnn_eeee_tttt_cccc_oooo_nnnn_ffff_iiii_gggg has the effect of ``binding'' or ``rewinding'' the
_nnnn_eeee_tttt_cccc_oooo_nnnn_ffff_iiii_gggg database. _ssss_eeee_tttt_nnnn_eeee_tttt_cccc_oooo_nnnn_ffff_iiii_gggg must be called before the first call to
_gggg_eeee_tttt_nnnn_eeee_tttt_cccc_oooo_nnnn_ffff_iiii_gggg and may be called at any other time. _ssss_eeee_tttt_nnnn_eeee_tttt_cccc_oooo_nnnn_ffff_iiii_gggg need _n_o_t
be called before a call to _gggg_eeee_tttt_nnnn_eeee_tttt_cccc_oooo_nnnn_ffff_iiii_gggg_eeee_nnnn_tttt. _ssss_eeee_tttt_nnnn_eeee_tttt_cccc_oooo_nnnn_ffff_iiii_gggg returns a
unique handle to be used by _gggg_eeee_tttt_nnnn_eeee_tttt_cccc_oooo_nnnn_ffff_iiii_gggg.
When first called, _gggg_eeee_tttt_nnnn_eeee_tttt_cccc_oooo_nnnn_ffff_iiii_gggg returns a pointer to the current entry in
the _nnnn_eeee_tttt_cccc_oooo_nnnn_ffff_iiii_gggg database, formatted as a _nnnn_eeee_tttt_cccc_oooo_nnnn_ffff_iiii_gggg structure. _gggg_eeee_tttt_nnnn_eeee_tttt_cccc_oooo_nnnn_ffff_iiii_gggg
can thus be used to search the entire _nnnn_eeee_tttt_cccc_oooo_nnnn_ffff_iiii_gggg file. _gggg_eeee_tttt_nnnn_eeee_tttt_cccc_oooo_nnnn_ffff_iiii_gggg
returns _NNNN_UUUU_LLLL_LLLL at end of file.
_eeee_nnnn_dddd_nnnn_eeee_tttt_cccc_oooo_nnnn_ffff_iiii_gggg should be called when processing is complete to release
resources for reuse. Programmers should be aware, however, that the last
call to _eeee_nnnn_dddd_nnnn_eeee_tttt_cccc_oooo_nnnn_ffff_iiii_gggg frees all memory allocated by _gggg_eeee_tttt_nnnn_eeee_tttt_cccc_oooo_nnnn_ffff_iiii_gggg for the
_ssss_tttt_rrrr_uuuu_cccc_tttt _nnnn_eeee_tttt_cccc_oooo_nnnn_ffff_iiii_gggg data structure. _eeee_nnnn_dddd_nnnn_eeee_tttt_cccc_oooo_nnnn_ffff_iiii_gggg may not be called before
_ssss_eeee_tttt_nnnn_eeee_tttt_cccc_oooo_nnnn_ffff_iiii_gggg. _eeee_nnnn_dddd_nnnn_eeee_tttt_cccc_oooo_nnnn_ffff_iiii_gggg returns _0000 on success and _----_1111 on failure (for
example, if _ssss_eeee_tttt_nnnn_eeee_tttt_cccc_oooo_nnnn_ffff_iiii_gggg was not called previously).
_gggg_eeee_tttt_nnnn_eeee_tttt_cccc_oooo_nnnn_ffff_iiii_gggg_eeee_nnnn_tttt returns a pointer to the _nnnn_eeee_tttt_cccc_oooo_nnnn_ffff_iiii_gggg structure
corresponding to _n_e_t_i_d. It returns _NNNN_UUUU_LLLL_LLLL if _n_e_t_i_d is invalid (that is,
does not name an entry in the _nnnn_eeee_tttt_cccc_oooo_nnnn_ffff_iiii_gggg database). It returns _NNNN_UUUU_LLLL_LLLL and
sets _e_r_r_n_o in case of failure (e.g., if _ssss_eeee_tttt_nnnn_eeee_tttt_cccc_oooo_nnnn_ffff_iiii_gggg was not called
previously).
_ffff_rrrr_eeee_eeee_nnnn_eeee_tttt_cccc_oooo_nnnn_ffff_iiii_gggg_eeee_nnnn_tttt frees the netconfig structure pointed to by _n_e_t_c_o_n_f_i_g_p,
previously returned by _gggg_eeee_tttt_nnnn_eeee_tttt_cccc_oooo_nnnn_ffff_iiii_gggg_eeee_nnnn_tttt.